package com.ljj.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author liujiju
 * @since 2021-11-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Question对象", description="")
public class Question implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "题目表ID")
    @TableId(value = "qId", type = IdType.AUTO)
    private Integer qId;

    @ApiModelProperty(value = "题目名")
    private String qname;

    @ApiModelProperty(value = "答案")
    private String qanswer;

    @ApiModelProperty(value = "正确答案")
    private String qright;

    @ApiModelProperty(value = "解析")
    private String qanalysis;

    @ApiModelProperty(value = "课程ID")
    @TableField("cId")
    private Integer cId;

    @ApiModelProperty(value = "类型ID")
    @TableField("tyId")
    private Integer tyId;

    private Integer default1;

    private String default2;
    @TableField(exist = false)
    private String cname;
    @TableField(exist = false)
    private String tyname;
    @TableField(exist = false)
	private Integer limit;
	@TableField(exist = false)
	private Integer page;


}
